import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SQuestion } from "./SQuestion";
type int = number;
//class SQuestionData
    
    export  class SQuestionData extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SQuestionData();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.num);
            arg1.writeDate(this.questionDt);
            this.question.__write(arg1);
            arg1.writeInt(this.remainNum);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.num = arg1.readInt();
            this.questionDt = arg1.readDate();
            this.question = new SQuestion();
            this.question.__read(arg1);
            this.remainNum = arg1.readInt();
            return;
        }

        public /* const */_type: int=20451;

        public /* var */num: int;

        public /* var */questionDt: Date;

        public /* var */question: SQuestion;

        public /* var */remainNum: int;

        public static /* var */_regist: SQuestionData;
    }

            SQuestionData._regist = new SQuestionData(true);
        